/**
 * @format
 * @Author: TC
 * @Date: 2025-06-10 11:20:24
 * @Last Modified by: TC
 * @Last Modified time: 2025-06-10 11:21:10
 */

import { _decorator, v3, Vec3 } from "cc";
import { app } from "../../App";
import { BaseComponent } from "../Component/BaseComponent";
const { ccclass, property } = _decorator;

/**
 * Ecs实体组件
 */
@ccclass("EntityComponent")
export class EntityComponent extends BaseComponent {
    protected _tempVec3: Vec3 = v3();
    /**
     *唯一id
     */
    private _uid: number = -1; //唯一id
    public set uid(i: number) {
        this._uid = i;
    }
    public get uid(): number {
        return this._uid;
    }

    protected init(): void {
        super.init();
        // app.tickMgr.add(this);
    }

    public tick(dt: number): void {}
}
